/*
 * Created by JFormDesigner on Wed May 25 14:56:16 CST 2022
 */

package jw3.c10.view;

import jw3.c10.controllner.*;
import jw3.c10.model.Userinfo;
import jw3.c10.utils.DBConnection;
import jw3.c10.utils.QueryByClass;

import java.awt.*;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.List;
import java.util.Vector;
import javax.swing.*;
import javax.swing.table.DefaultTableModel;

/**
 * @author Brainrain
 */
public class index extends JFrame {
    public index() {
        initComponents();
       // this.setSize(700, 550);
        setSize(800,600);

setTitle("云卡");
        ImageIcon imgIcon = new ImageIcon("images\\s.jpg");
        JLabel im = new JLabel();
        im.setIcon(imgIcon);
        im.setBounds(0, 0, 800, 600);
        imgIcon.setImage(imgIcon.getImage().
                getScaledInstance(900, 700, 1));
        this.add(im);
//        button1=new JButton(new ImageIcon("image\\b.jpg"));

        this.setVisible(true);
        this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);


    }
    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
        menuBar1 = new JMenuBar();
        menu1 = new JMenu();
        menu2 = new JMenu();
        menu3 = new JMenu();
        menu5 = new JMenu();
        panel1 = new JPanel();
        menu4 = new JMenu();
        this2 = new JFrame();
        label3 = new JLabel();
        label5 = new JLabel();
        label7 = new JLabel();
        label9 = new JLabel();
        panel2 = new JPanel();

        //======== this ========
        Container contentPane = getContentPane();
        contentPane.setLayout(null);

        //======== menuBar1 ========
        {

            //======== menu1 ========
            {
                menu1.setText("\u7528\u6237\u57fa\u672c\u4fe1\u606f\u7ba1\u7406");
                menu1.setForeground(Color.black);
                menu1.setFont(new Font("Microsoft YaHei UI", Font.PLAIN, 18));
            }
            menuBar1.add(menu1);

            //======== menu2 ========
            {
                menu2.setText("\u6a21\u62df\u5730\u94c1\u5361\u6d88\u8d39");
                menu2.setForeground(Color.black);
                menu2.setFont(new Font("Microsoft YaHei UI", Font.PLAIN, 18));
            }
            menuBar1.add(menu2);

            //======== menu3 ========
            {
                menu3.setText("\u5145\u503c\u53ca\u6d88\u8d39\u8bb0\u5f55\u67e5\u8be2");
                menu3.setForeground(Color.black);
                menu3.setFont(new Font("Microsoft YaHei UI", Font.PLAIN, 18));
            }
            menuBar1.add(menu3);

            //======== menu5 ========
            {
                menu5.setText("\u5347\u7ea7VIP\u5361");
                menu5.setForeground(Color.black);
                menu5.setFont(new Font("Microsoft YaHei UI", Font.PLAIN, 18));
            }
            menuBar1.add(menu5);
        }
        setJMenuBar(menuBar1);

        //======== panel1 ========
        {
            panel1.setLayout(null);

            {
                // compute preferred size
                Dimension preferredSize = new Dimension();
                for(int i = 0; i < panel1.getComponentCount(); i++) {
                    Rectangle bounds = panel1.getComponent(i).getBounds();
                    preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
                    preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
                }
                Insets insets = panel1.getInsets();
                preferredSize.width += insets.right;
                preferredSize.height += insets.bottom;
                panel1.setMinimumSize(preferredSize);
                panel1.setPreferredSize(preferredSize);
            }
        }
        contentPane.add(panel1);
        panel1.setBounds(new Rectangle(new Point(310, 100), panel1.getPreferredSize()));

        //======== menu4 ========
        {
            menu4.setText("text");
        }
        contentPane.add(menu4);
        menu4.setBounds(new Rectangle(new Point(345, -20), menu4.getPreferredSize()));

        {
            // compute preferred size
            Dimension preferredSize = new Dimension();
            for(int i = 0; i < contentPane.getComponentCount(); i++) {
                Rectangle bounds = contentPane.getComponent(i).getBounds();
                preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
                preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
            }
            Insets insets = contentPane.getInsets();
            preferredSize.width += insets.right;
            preferredSize.height += insets.bottom;
            contentPane.setMinimumSize(preferredSize);
            contentPane.setPreferredSize(preferredSize);
        }
        pack();
        setLocationRelativeTo(getOwner());

        //======== this2 ========
        {
            Container this2ContentPane = this2.getContentPane();
            this2ContentPane.setLayout(null);

            //---- label3 ----
            label3.setText("\u7528\u6237\u57fa\u672c\u4fe1\u606f\u7ba1\u7406");
            this2ContentPane.add(label3);
            label3.setBounds(9, 60, label3.getPreferredSize().width, 50);

            //---- label5 ----
            label5.setText("\u6a21\u62df\u5730\u94c1\u5361\u6d88\u8d39");
            this2ContentPane.add(label5);
            label5.setBounds(21, 155, label5.getPreferredSize().width, 50);

            //---- label7 ----
            label7.setText("\u5145\u503c\u53ca\u6d88\u8d39\u8bb0\u5f55\u67e5\u8be2");
            this2ContentPane.add(label7);
            label7.setBounds(15, 245, label7.getPreferredSize().width, 50);

            //---- label9 ----
            label9.setText("\u5347\u7ea7VIP\u5361");
            this2ContentPane.add(label9);
            label9.setBounds(20, 355, 100, label9.getPreferredSize().height);

            //======== panel2 ========
            {
                panel2.setLayout(null);

                {
                    // compute preferred size
                    Dimension preferredSize = new Dimension();
                    for(int i = 0; i < panel2.getComponentCount(); i++) {
                        Rectangle bounds = panel2.getComponent(i).getBounds();
                        preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
                        preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
                    }
                    Insets insets = panel2.getInsets();
                    preferredSize.width += insets.right;
                    preferredSize.height += insets.bottom;
                    panel2.setMinimumSize(preferredSize);
                    panel2.setPreferredSize(preferredSize);
                }
            }
            this2ContentPane.add(panel2);
            panel2.setBounds(new Rectangle(new Point(310, 100), panel2.getPreferredSize()));

            {
                // compute preferred size
                Dimension preferredSize = new Dimension();
                for(int i = 0; i < this2ContentPane.getComponentCount(); i++) {
                    Rectangle bounds = this2ContentPane.getComponent(i).getBounds();
                    preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
                    preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
                }
                Insets insets = this2ContentPane.getInsets();
                preferredSize.width += insets.right;
                preferredSize.height += insets.bottom;
                this2ContentPane.setMinimumSize(preferredSize);
                this2ContentPane.setPreferredSize(preferredSize);
            }
            this2.pack();
            this2.setLocationRelativeTo(this2.getOwner());
        }
        //JFormDesigner - End of component initialization  //GEN-END:initComponents

    }

    // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
    private JMenuBar menuBar1;
    private JMenu menu1;
    private JMenu menu2;
    private JMenu menu3;
    private JMenu menu5;
    private JPanel panel1;
    private JMenu menu4;
    private JFrame this2;
    private JLabel label3;
    private JLabel label5;
    private JLabel label7;
    private JLabel label9;
    private JPanel panel2;
    // JFormDesigner - End of variables declaration  //GEN-END:variables
}
